﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminSite.Master" AutoEventWireup="true" CodeBehind="AlbumsManager.aspx.cs" Inherits="OLMS.Admin.AlbumsManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
    <link href="../Assets/css/input.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="pure-form">
        <fieldset>
            <legend>后台管理&nbsp;&nbsp;<i class="fa fa-angle-double-right"></i>&nbsp;&nbsp;音乐专辑     
                   <asp:LinkButton ID="btnAdd" runat="server" CssClass="button-default pure-button tools-button pure-button-primary"  OnClick="btnAdd_Click">添加音乐专辑</asp:LinkButton>
            </legend>
         
        </fieldset>
    </div>
    <table class="pure-table pure-table-bordered pure-table-striped">
        <thead>
            <tr>
                <th>编号</th> <th>音乐名称</th><th>类型名称</th> <th>歌手名称</th><th>音乐价格</th><th>操作</th>
            </tr>
        </thead>
        <tbody>
            <asp:Repeater ID="repAlbumsList" runat="server">
                <ItemTemplate>
                    <tr>
                        <td><%# Eval("AlbumId") %></td>
                        <td><%# Eval("Title") %></td>
                        <td><%# Eval("GenreName") %></td>
                        <td><%# Eval("ArtistName") %></td>
                        <td><%# Eval("Price","{0:C}元") %></td>
                        <td>
                            <asp:LinkButton ID="btnEdit" runat="server" CssClass="button-default pure-button pure-button-primary" CommandArgument='<%# Eval("AlbumId") %>' OnCommand="btnEdit_Command">编辑</asp:LinkButton>
                            <asp:LinkButton ID="btnRemove" runat="server" CssClass="button-default pure-button" CommandArgument='<%# Eval("AlbumId") %>' OnClientClick="return confirm('确定删除该音乐专辑！');" OnCommand="btnRemove_Command">删除</asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td colspan="7">
                    <div class="pure-form">
                        <asp:Label ID="lblPager" runat="server" Text=""></asp:Label>
                        <asp:LinkButton ID="btnFirst" runat="server" CssClass="button-default pure-button" OnClick="btnFirst_Click">首页</asp:LinkButton>
                        <asp:LinkButton ID="btnPrev" runat="server" CssClass="button-default pure-button" OnClick="btnPrev_Click">上页</asp:LinkButton>
                        <asp:LinkButton ID="btnNext" runat="server" CssClass="button-default pure-button" OnClick="btnNext_Click">下页</asp:LinkButton>
                        <asp:LinkButton ID="btnLast" runat="server" CssClass="button-default pure-button" OnClick="btnLast_Click">末页</asp:LinkButton>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
